package com.mlnx.analysis.pojo.dto;

import java.io.Serializable;

public class AbnormalEcgPair implements Comparable<AbnormalEcgPair>, Serializable {

    private String abnormalType;

    private Long startTime;

    private Long endTime;

    private byte[] filterEcgData; // 滤波后的的心电数据

    public AbnormalEcgPair() {

    }

    public AbnormalEcgPair(Long startTime, Long endTime) {
        this.startTime = startTime;
        this.endTime = endTime;
    }


    public String getAbnormalType() {
        return abnormalType;
    }

    public void setAbnormalType(String abnormalType) {
        this.abnormalType = abnormalType;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public byte[] getFilterEcgData() {
        return filterEcgData;
    }

    public void setFilterEcgData(byte[] filterEcgData) {
        this.filterEcgData = filterEcgData;
    }

    @Override
    public int compareTo(AbnormalEcgPair o) {
        return (int) (this.startTime - o.getStartTime());
    }

}
